<%@ page import="cn.estore.dao.CustomerDao" %>
<%@ page import="cn.estore.entity.CustomerEntity" %><%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2023/12/19
  Time: 9:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="0" width="1024" align="center">
    <tr>
        <%--        顶部--%>
        <td colspan="6">
            <jsp:include page="../Common/head.jsp" flush="true"/>
        </td>
    </tr>
    <tr>
        <td width="40%" bgcolor="#F5F5F5" valign="top">
            <%--            左侧--%>
            <jsp:include page="../Common/left.jsp" flush="true"/>
        </td>
        <td width="724" align="center" valign="top" bgcolor="#FFFFFF">
            <%--            右侧--%>
            <div align="left">
                <img src="<%=request.getContextPath()%>/systemImages/fg_right03.jpg">
            </div>
            <%--    显示商品--%>
                <%
    CustomerDao dao = new CustomerDao();
    String name = request.getParameter("name").trim();
    String result = request.getParameter("result").trim();
    CustomerEntity user = dao.selectFind(name, result);
%>
                <%
    if (user == null) {
%>
            <p><Strong>答案不正确,请重新输入</Strong></p>
            <meta http-equiv="refresh" content="2;URL=userPasswordFind2.jsp?name=<%=name%>">
                <%
} else {
%>
            <p><Strong>请输入新密码</Strong></p>
            <form action="userPasswordFind4.jsp?id=<%=user.getId()%>" name="form" method="post"
                  onsubmit="return checkEmpty(form)">
                <table>
                    <tr>
                        <td width="200">
                            <div align="right">请输入新密码:</div>
                        </td>

                        <td width="187">
                            <div align="center">
                                <input type="password" name="password">
                            </div>
                        </td>
                        <br>
                        <td width="200">
                            <div align="right">确认密码:</div>
                        </td>
                        <td width="187">
                            <div align="center">
                                <input type="password" name="passwordOne">
                            </div>
                        </td>
                    </tr>

                </table>
                <br>
                <input type="image" class="input1" src="<%=request.getContextPath()%>/systemImages/save.jpg" width="51"
                       height="20">
                &nbsp;&nbsp;
                <a href="#" onclick="javascript:form.reset()"><img
                        src="<%=request.getContextPath()%>/systemImages/clear.gif"
                        alt=""></a>
                &nbsp;&nbsp;
                <a href="#" onclick="javascript:history.go(-1)"><img
                        src="<%=request.getContextPath()%>/systemImages/back.gif"
                        alt=""></a>
            </form>
    <tr>

        <%--        底部--%>
        <td colspan="2">

            <jsp:include page="../Common/statusBarNavigation.jsp" flush="true"/>
        </td>
    </tr>
</table>
<%}%>
<script>

</script>
</body>
</html>
